package com.ruoyi.duty.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 房屋踏查业务对象 duty_tc
 *
 * @author xiaohao
 * @date 2023-01-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DutyTcBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long tcId;

    private Long placeId;

    private Long memberId;

    private String imgIn;

    private String imgOut;

    private String tcResult;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date tcTime;

}
